package com.xdf.ecommerce.controller;

import com.xdf.ecommerce.entity.EcommerceUser;
import com.xdf.ecommerce.service.EcommerceUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author chanchaw
 * @create 2025-10-15 7:54
 */
@CrossOrigin
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class EcommerceUserController {
    private final EcommerceUserService service;
    @PostMapping("/find8Username/{username}")
    public List<EcommerceUser> find8Username(@PathVariable String username){
        return service.find8Username(username);
    }
}
